package contato.BEANS;

import java.util.Map;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.context.FacesContext;

import contato.DAO.DAOException;

@ManagedBean
@RequestScoped
public class LimparSessaoBean {

	
public void limparSession() throws DAOException
{

	System.out.println("usuario saiu do sistema");
	// remover:
	FacesContext.getCurrentInstance().getExternalContext().getSessionMap()
			.remove("login");


	
	
	
	// remover:
	FacesContext.getCurrentInstance().getExternalContext().getSessionMap()
			.remove("cercaControll");

	
	
	// remover:
	FacesContext.getCurrentInstance().getExternalContext().getSessionMap()
			.remove("notificaBean");


	

	// remover:
	FacesContext.getCurrentInstance().getExternalContext().getSessionMap()
			.remove("relatorioMapBean");

	
}
	
	
}
